#include "cc.h"
#include "bsp_clk.h"
#include "bsp_delay.h"
#include "bsp_led.h"
#include "bsp_uart.h"
#include "bsp_int.h"
#include "stdio.h"
int main(int argc, const char * argv[])
{
	unsigned char state = OFF;
    #if GPT1_INTERRUPT_ENA == 1
    int_init(); 				/* 初始化中断(一定要最先调用！) */
    #endif
	imx6u_clkinit();			/* 初始化系统时钟 			*/
	delay_init();				/* 初始化延时 			*/
	clk_enable(); /* 使能所有的时钟 			*/
	led_init();	  /* 初始化led 			*/

	uart_init(); /* 初始化串口，波特率115200 */
    printf("*** Build Time: %s %s,Git Version: %s Git Remote: %s ***\r\n", __DATE__, __TIME__, GIT_VERSION, GIT_PATH);

	while (1)
	{
		delayms(500);

		state = !state;
		led_switch(LED0, state);
	}

	return 0;
}
